package net.zjitc.service;

import net.zjitc.common.ResponseResult;
import net.zjitc.entity.Role;
import net.zjitc.exception.RoleException;

import java.util.List;

/**
 * @Author 毛钰深
 * @Create 2021/12/29 20:42
 */
public interface RoleService {

    ResponseResult selectRole();

    ResponseResult updateRole(Role role) throws RoleException;

    ResponseResult addRole(Role role) throws RoleException;

    ResponseResult selectById(Integer id);

    ResponseResult deleteRoleById(Integer id);

    void clearUserAuthorityInfoByRoleId(Integer roleId);

    ResponseResult rightsAndRole(Role role1);

    ResponseResult deleteRoleRights(Integer roleId, Integer rightId) throws RoleException;

}
